const userData = [
  {
    username: "admin",
    password: "123456",
    registerTime: "2022-06-01"
  },
  {
    username: "admin1",
    password: "123456",
    registerTime: "2021-06-01"
  },
  {
    username: "admin2",
    password: "123456",
    registerTime: "2021-06-01"
  },
  {
    username: "admin3",
    password: "123456",
    registerTime: "2021-06-01"
  },
  {
    username: "admin4",
    password: "123456",
    registerTime: "2021-06-01"
  },
]

module.exports = [
  {// 账号检查
    url: '/checkAccount',
    type: 'post',
    response: (config) => {
      let data = userData.filter((item) => {
        return item.username == config.body.username;
      })
      return {
        code: 20000,
        data: data,
      }
    }
  }
]